package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

/**
 * ClassName: RoleService
 * Description:
 * date: 2019/12/2 16:35
 * Author Airson
 * Since JDK 1.8
 */
public interface RoleService {

    PageResult pageQuery(QueryPageBean queryPageBean);

    void add(Role role,Integer[] menuIds,Integer[] permissions );

    void delById(Integer id);

    Role findById(Integer id);

    List<Integer> findmenuIdsById(Integer roleId);

    List<Integer> findPermissionIdsById(Integer roleId);

    void edit(Role role, Integer[] menuIds, Integer[] permissions);
}
